package day1103_3;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class F1 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("1103_bak.txt");//1.
        FileInputStream  fis=new FileInputStream("1103.txt");//1.

        int letter=0;//2. 如果read没有读到数据会返回-1
        while(  (letter=fis.read())!=-1  ){
            System.out.print(  (char)letter  );
//            fos.write(letter);//2.
        }
        fos.close();//3.
        fis.close();//3.
    }
}


